package cn.pengyinrui.department.system.dept.service.impl;

import cn.pengyinrui.department.system.dept.domain.Department;
import cn.pengyinrui.department.system.dept.domain.DepartmentRO;
import cn.pengyinrui.department.system.dept.service.IDepartmentService;
import cn.pengyinrui.department.base.service.impl.BaseServiceImpl;
import cn.pengyinrui.department.system.dept.mapper.DepartmentMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author peng.yr
 * @since 2023-01-20
 */
@Service
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public List<DepartmentRO> countByDepartmentId() {
        return departmentMapper.countByDepartmentId();
    }
}
